import axios from '../../axios'; //封装好的axios

const adminsApi = {
    addUser(data) {
        return axios({
            url: "/admin/addUser",
            method: "post",
            data
        })
    },
    delUser(_id) {
        return axios({
            url: "/admin/delUser",
            method: "post",
            data: { _id }
        })
    },
    modUser(data) {
        return axios({
            url: "/admin/modUser",
            method: "post",
            data,
        })
    },
    getUsers(data) {
        return axios({
            url: "/admin/getUsers",
            method: "post",
            data,
        })
    },
    getClients(data) {
        return axios({
            url: "/admin/getClients",
            method: "post",
            data,
        })
    },
    modOrderStatus(data) {
        return axios({
            url: "/admin/modOrderStatus",
            method: "post",
            data,
        })
    }
}

export default adminsApi